<?php
global $_GPC, $_W;
$GLOBALS['frames'] = $this->getMainMenu();
$item=pdo_get('wxc_order',array('uniacid'=>$_W['uniacid']));
if(checksubmit('submit')){
    $data['status']=$_GPC['status'];
    $data['uniacid']=$_W['uniacid'];                     
    if($_GPC['id']==''){                
        $res=pdo_insert('wxc_order',$data);
        if($res){
            message('添加成功',$this->createWebUrl('checkxc',array()),'success');
        }else{
            message('添加失败','','error');
        }
    }else{
        $res = pdo_update('wxc_order', $data, array('id' => $_GPC['id']));
        if($res){
            message('编辑成功',$this->createWebUrl('checkxc',array()),'success');
        }else{
            message('编辑失败','','error');
        }
    }
}
include $this->template('web/checkxc');